<template>
  <div>

  </div>
</template>

<script>
  import axios from "axios"

  export default {
    name: "TestAjax",
    mounted() {
      const url = "http://api.github.com/search/repositories?q=vue&sort=stars";
      axios.get(url).then(res => {
        console.log(res)
      }).catch(error => {
        console.log(error)
      })
    }
</script>

<style scoped>

</style>
